<div ng-controller="CourseApplyStuInfoCtrl as ctrl" ng-init="ctrl.query()">
	<div class="panel panel-cys">
		<div class="panel-heading">
			<h3 class="panel-title">
				<span class="glyphicon glyphicon-search"></span>
				信息查询
			</h3>
		</div>
		<div class="panel-body">
			<div class="container-fluid">
				<form class="form-horizontal">
					<div>
						<div class="form-group col-sm-4 remove-margin-horizontal">
							<div class="col-sm-10 col-sm-offset-1">
								<input placeholder="学号/姓名" ng-model="ctrl.nameQueryParam" type="text" class="form-control">
							</div>
						</div>
						<div class="form-group col-sm-4 remove-margin-horizontal">
							<div class="col-sm-10 col-sm-offset-1">
								<select class="form-control" ng-change="ctrl.changeDepartment()" ng-options="m.id as m.name for m in ctrl.departments"
									ng-model="ctrl.departmentQueryParam">
									<option value="">院系</option>
								</select>

							</div>
						</div>
						<div class="form-group col-sm-4 remove-margin-horizontal">
							<div class="col-sm-10 col-sm-offset-1">
								<select class="form-control" ng-options="m.id as m.bjName for m in ctrl.classInfoList" ng-model="ctrl.clazzQueryParam">
									<option value="">班级</option>
								</select>
							</div>
						</div>
					</div>
				</form>
				<div class="row pull-right">
					<div class="col-md-12">
						<button ng-click="ctrl.query()" type="submit" class="btn btn-cys btn-sm">
							<span class="glyphicon glyphicon-search"></span>
							查询
						</button>
						<button ng-click="ctrl.reset()" type="reset" class="btn btn-default btn-sm">
							<span class="glyphicon glyphicon-repeat"></span>
							重置
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>

	<a type="button" class="btn btn-cys btn-sm" ng-click="export(ctrl,'root/course/exportCourseStuInfo')">
		<span class="glyphicon glyphicon-export"></span>
		导出
	</a>
	<div class="pull-right" ng-include="':root/components/page.html'"></div>
	<div class="container-fluid" style="padding-top: 10px;">
		<table class="table table-bordered table-hover table-striped">
			<tr>
				<th class="hidden">
					<input ng-change="ctrl.checkAll(ctrl.$checkAll)" ng-model="ctrl.$checkAll" type="checkbox" />
				</th>
				<th>学号</th>
				<th>姓名</th>
				<th>院系</th>
				<th>班级</th>
			</tr>
			<tr ng-repeat="item in ctrl.entities.content">
				<td class="hidden">
					<input ng-model="item.$checked" type="checkbox" />
				</td>
				<td>{{item.student.xh}}</td>
				<td>{{item.student.name}}</td>
				<td>{{item.student.department.name}}</td>
				<td>{{item.classInfo.bjName}}</td>
			</tr>
		</table>
		<p>
			共有记录：
			<span>{{ctrl.entities.totalElements}}</span>
			条
		</p>
	</div>
</div>